package com.spark.authapi.feign.fallback;

import com.spark.authapi.feign.OauthFeign;
import com.spark.basecommon.api.R;
import com.spark.basecommon.entity.vo.Oauth2TokenDto;

import java.security.Principal;
import java.util.Map;

/**
 * @author fuqiang
 * @Description 回滚类
 * @Date 2020/10/16
 */
public class OauthFallBack implements OauthFeign {
    @Override
    public R<Oauth2TokenDto> authorization(Principal principal, Map<String, String> parameters) {
        return R.failed("认证失败");
    }
}
